package com.player.thirdGroup.dao;

import com.player.thirdGroup.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * @author VULCAN
 * @create 2019-12-27 21:29
 * @desc 账号
 **/
public interface UserDao extends JpaRepository<User , String>, JpaSpecificationExecutor<User> {
    //登录
    User findByUsername(String username);

    @Query(value = "select * from sys_user where user_phone=?",nativeQuery = true)
    User findByUserPhone(String userphone);


}
